package com.zjsru.oneday202208;

/**
 * @Author: likew
 * @Date: 2022/8/1
 */
public class GenerateTheString {
    public String generateTheString(int n) {
        StringBuilder sb = new StringBuilder();
        if(n % 2 == 0 && --n >= 0){
            sb.append("a");
        }
        while(n-- > 0){
            sb.append("b");
        }
        return sb.toString();
    }
    
    public static void main(String[] args) {
        GenerateTheString generateTheString = new GenerateTheString();
        int n =2;
        System.out.println(generateTheString.generateTheString(n));
    }
}
